package org.xhy.retryer.predicate;

import java.util.Objects;

/**
 * @description:
 * @gitee: https://gitee.com/XhyQAQ
 * @copyright: B站: https://space.bilibili.com/152686439
 * @Author: Xhy
 * @CreateTime: 2024-04-29 22:19
 */
public class IsEqualPredicates<T> implements IPredicate<T>{

    private final Object object;

    public IsEqualPredicates(Object object) {
        this.object = object;
    }

    @Override
    public boolean apply(T input) {
        return object.equals(input);
    }
}
